package com.cqjtu.eecs.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="RolePermissionVO", description="角色权限对象")
public class RolePermissionVO {
    @ApiModelProperty(value = "权限标题")
    private String title;
    @ApiModelProperty(value = "权限图标")
    private String icon;
    @ApiModelProperty(value = "是否拥有权限")
    private Boolean hasPermission;
    @ApiModelProperty(value = "次级权限")
    private List<RolePermissionVO> children;

    public RolePermissionVO() {
    }

    public RolePermissionVO(String title,String icon ,Boolean hasPermission, List<RolePermissionVO> children) {
        this.title = title;
        this.hasPermission = hasPermission;
        this.children = children;
        this.icon = icon;
    }
}
